<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>Document</title>
    <!--必须先执行这个 得到了一个全局对象， ReactDoM，用来操作dom -->
    <script src="./lib/react.development.js"></script>
    <!-- 得到一个全局对象，React 提供了react核心的方法 -->
    <script src="./lib/react-dom.development.js"></script>
</head>
<body>
    <div id="root"></div>

    <script>
        console.log(React);
        console.log(ReactDOM);
        const root = ReactDOM.createRoot(document.getElementById('root'))
        root.render('我是react代码')
        
    </script>
</body>
</html>